package com.googlecode.animator.controller
{
	import com.googlecode.data.objects3d.Object3DVO;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
		
	/**
	 * Handles a change to an Object3D's material. 
	 * @author USER
	 * 
	 */
	public class SWFLoadedCommand extends BaseCommand
	{
		/**
		 * Executes command. 
		 * @param notification
		 * 
		 */
		override public function execute(notification:INotification):void
		{
			super.execute(notification);
			
			var object3D:Object3DVO = notification.getBody() as Object3DVO;
			
			settings.setObject3DMaterial(object3D, false);
		}
	}
}